package com.zzq.controller;

import com.zzq.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: SpringBoot_Demo
 * @description: Book控制类
 * @author: zzq
 * @create: 2025-02-23 17:15
 **/
@RestController
@RequestMapping("/books")
public class BookController {
    @RequestMapping("/save")
    public String save(@RequestBody Book book){
        System.out.println(book.toString());
        return "hello spring";

    }
}
